package com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
 * 创建供应商辅助核算DTO
 */
@Getter
@Setter
public class CreateAssistCalculateSupplierDTO extends CreateAssistCalculateBaseDTO implements Serializable {

    @ApiModelProperty(value = "供应商类别")
    private String supplierCate;

    @ApiModelProperty(value = "统一社会信用代码")
    private String unifiedSocialCreditCode;

    @ApiModelProperty(value = "省份编码")
    private String provinceCode;

    @ApiModelProperty(value = "城市编码")
    private String cityCode;

    @ApiModelProperty(value = "区县编码")
    private String countyCode;

    @ApiModelProperty(value = "经营地址")
    @Size(max = 200)
    private String address;

    @ApiModelProperty(value = "联系人")
    @Size(max = 50)
    private String contacts;

    @ApiModelProperty(value = "手机")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式有误")
    private String phone;
}
